package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 景区门票预订对象 scene_book
 * 
 * @author xdh
 * @date 2024-06-26
 */
public class SceneBook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 景区门票预订id */
    private Integer scenicBookingId;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer userId;

    /** 景区id */
    @Excel(name = "景区id")
    private Integer areaId;

    /** 游览时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "游览时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date tripData;

    /** 游览人数 */
    @Excel(name = "游览人数")
    private Integer tripCount;

    /** 总价 */
    @Excel(name = "总价")
    private Integer totalPrice;

    /** 支付状态（1为已支付，0为未支付） */
    @Excel(name = "支付状态", readConverterExp = "1=为已支付，0为未支付")
    private Integer paymentStatus;

    public void setScenicBookingId(Integer scenicBookingId) 
    {
        this.scenicBookingId = scenicBookingId;
    }

    public Integer getScenicBookingId() 
    {
        return scenicBookingId;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId()
    {
        return userId;
    }
    public void setAreaId(Integer areaId) 
    {
        this.areaId = areaId;
    }

    public Integer getAreaId() 
    {
        return areaId;
    }
    public void setTripData(Date tripData) 
    {
        this.tripData = tripData;
    }

    public Date getTripData() 
    {
        return tripData;
    }
    public void setTripCount(Integer tripCount) 
    {
        this.tripCount = tripCount;
    }

    public Integer getTripCount() 
    {
        return tripCount;
    }
    public void setTotalPrice(Integer totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public Integer getTotalPrice() 
    {
        return totalPrice;
    }
    public void setPaymentStatus(Integer paymentStatus) 
    {
        this.paymentStatus = paymentStatus;
    }

    public Integer getPaymentStatus() 
    {
        return paymentStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("scenicBookingId", getScenicBookingId())
            .append("userId", getUserId())
            .append("areaId", getAreaId())
            .append("tripData", getTripData())
            .append("tripCount", getTripCount())
            .append("totalPrice", getTotalPrice())
            .append("paymentStatus", getPaymentStatus())
            .toString();
    }
}
